package com.daJiao.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Title:      AlarmProperties. </p>

 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         <a href="xinglinglove1029@163.com"/>杨文生</a>
 * @since      2021/2/2 17:04
 */
@Configuration
@ConfigurationProperties(prefix = AlarmProperties.ALARM_PREFIX)
public class AlarmProperties {

	public final static String ALARM_PREFIX="alarm";

	/**
	 * dingding,slack
	 */
	private String alarmType = "dingding";

	/**
	 * 告警url
	 */
	private String alarmUrl;

	/**
	 * slack 告警的所属群
	 */
	private String channel = "#develop";

	/**
	 * slack 告警的用户名
	 */
	private String username = "异常告警";

	/**
	 * slack 告警的表情
	 */
	private String emoji = ":ghost:";

	public String getAlarmType() {
		return alarmType;
	}

	public void setAlarmType(String alarmType) {
		this.alarmType = alarmType;
	}

	public String getAlarmUrl() {
		return alarmUrl;
	}

	public void setAlarmUrl(String alarmUrl) {
		this.alarmUrl = alarmUrl;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmoji() {
		return emoji;
	}

	public void setEmoji(String emoji) {
		this.emoji = emoji;
	}
}
